home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / GCC-HEAD.MAK < prev    next >
Makefile  |  1992-03-25  |  4KB  |  132 lines

  1. #    Copyright (C) 1989, 1990, 1991 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/gcc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Define the name of the Ghostscript initialization file.
  35. # (There is no reason to change this.)
  36.  
  37. GS_INIT=gs_init.ps
  38.  
  39. # Choose generic configuration options.
  40.  
  41. # -DDEBUG
  42. #    includes debugging features (-Z switch) in the code.
  43. #      Code runs substantially slower even if no debugging switches
  44. #      are set.
  45. # -DNOPRIVATE
  46. #    makes private (static) procedures and variables public,
  47. #      so they are visible to the debugger and profiler.
  48. #      No execution time or space penalty.
  49.  
  50. GENOPT=
  51.  
  52. # ------ Platform-specific options ------ #
  53.  
  54. # Define the name of the C compiler.
  55.  
  56. CC=gcc
  57.  
  58. # Define the other compilation flags.
  59. # Add -DBSD4_2 for 4.2bsd systems.
  60. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  61. # Add -DSYSV -D__SVR3 for SCO ODT.
  62. # Add -DSVR4 (not -DSYSV) for System V release 4.
  63. # XCFLAGS can be set from the command line.
  64. # We don't include -ansi, because this gets in the way of the platform-
  65. #   specific stuff that <math.h> typically needs.
  66.  
  67. CFLAGS=-g -O $(XCFLAGS)
  68.  
  69. # Define platform flags for ld.
  70. # SunOS and some others want -X; Ultrix wants -x.
  71. # SunOS 4.n may need -Bstatic.
  72. # XLDFLAGS can be set from the command line.
  73.  
  74. LDFLAGS=$(XLDFLAGS)
  75.  
  76. # Define any extra libraries to link into the executable.
  77. # SCO ODT apparently needs -lsocket.
  78. # (Libraries required by individual drivers are handled automatically.)
  79.  
  80. EXTRALIBS=
  81.  
  82. # Define the include switch(es) for the X11 header files.
  83. # This can be null if handled in some other way (e.g., the files are
  84. # in /usr/include, or the directory is supplied by an environment variable).
  85.  
  86. XINCLUDE=-I/usr/local/X/include
  87.  
  88. # Define the directory/ies for the X11 library files.
  89. # This can be null if these files are in the default linker search path.
  90.  
  91. XLIBDIRS=-L/usr/local/X/lib
  92.  
  93. # Define the installation commands and target directories for
  94. # executables and files.  Only relevant to `make install'.
  95.  
  96. INSTALL = install -c
  97. INSTALL_PROGRAM = $(INSTALL) -m 775
  98. INSTALL_DATA = $(INSTALL) -m 664
  99.  
  100. prefix = /usr/local
  101. bindir = $(prefix)/bin
  102. libdir = $(prefix)/lib/ghostscript
  103.  
  104. # ------ Devices and features ------ #
  105.  
  106. # Choose the language feature(s) to include.  See gs.mak for details.
  107.  
  108. FEATURE_DEVS=filter.dev dps.dev level2.dev
  109.  
  110. # Choose the device(s) to include.  See devs.mak for details.
  111.  
  112. DEVICE_DEVS=x11.dev
  113.  
  114. # ---------------------------- End of options --------------------------- #
  115.  
  116. # Define the name of the makefile -- used in dependencies.
  117.  
  118. MAKEFILE=unix-gcc.mak
  119.  
  120. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  121.  
  122. AK=
  123.  
  124. # Define the compilation rules and flags.
  125.  
  126. CCC=$(CC) $(CCFLAGS) -c
  127.  
  128. # --------------------------- Generic makefile ---------------------------- #
  129.  
  130. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  131. # is generic.  tar_cat concatenates all these together.
  132.